<!DOCTYPE html>
<html lang="en">

<head>
    <meta charset="UTF-8">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <title>Document</title>
</head>

<body>
    <script>
        // 碰到break 或rerun 不在继续执行
        let name = "WF";
        switch (name) {
            case "WF": // 这里也可以是表达式
                console.log("ww");
                break;
            default:
                console.log("default");
        }
    </script>
</body>

</html>